package com.erhirent.bizimpl;

import com.erhirent.bean.carUsers;
import com.erhirent.biz.IUserBiz;
import com.erhirent.dao.IusersDao;
import com.erhirent.daoimpl.UsersDaoImpl;

public class UsersBizImpl implements IUserBiz {
	/**
	 * 这是一个判断数据库中有么有账号
	 * 
	 * @param users
	 * @throws SQLException
	 */

	IusersDao muserdao = new UsersDaoImpl();

	public boolean isSame(String name, String Pwd) {

		return muserdao.isSame(name, Pwd);
	}

	public boolean addUser(carUsers users) {
		return muserdao.addUsers(users);

	}

	public boolean isname(String name) {

		return muserdao.isname(name);
	}

	public int GetUserId(String name) {
		return muserdao.GetUserId(name);

	}

	@Override
	public carUsers getuser(String name) {

		return muserdao.getuser(name);
	}

}
